import './myLocalStorage.js'
import './myCache.js'
import request from './request'


//  走缓存
window.myCache.get({
    api:'/product/list',
    mode: 'local'
}).then(data => {
    console.log(data)
}).catch(err => {
    console.log(err)
})

//  不使用缓存
request({
    url: '/product/list',
    method: 'get',
}).then(res => {
    console.log(res.name.a)
}).catch(err => {
    console.log(err._message)
})